<?php
Route::get('','HomeController@home')->name('home');
Route::get('register','HomeController@create')->name('register');
Route::resource('users','UsersController');
Route::get('login','HomeController@login')->name('login');
Route::post('login','HomeController@loginIn')->name('login');
Route::delete('logout','HomeController@logout')->name('logout');
Route::get('register/{token}','UsersController@confirm')->name('confirm');
Route::resource('blogs','BlogsController',['only' => ['store','destroy']]);
Route::get('users/{user}/followings','FollowersController@followings')->name('followings');
Route::get('users/{user}/followers','FollowersController@followers')->name('followers');
Route::post('users/{user}/follow','FollowersController@follow')->name('follow');
Route::delete('users/{user}/unfollow','FollowersController@unfollow')->name('unfollow');